/**
 *@ClassName FuncExp
 *
 *@Author ykx
 *@Date  2024/6/17 16:56
 *@Version 1.0
 */
fun main(args: Array<String>) {
    var result = add(15, 24)
    println(result)

    var i = { x: Int, y: Int -> x + y }
    var result2 = i(15, 24)
    println(result2)

    var j: (Int, Int) -> Int = { x, y -> x + y }
    println(j(15, 24))

}

fun add(x: Int, y: Int): Int = x + y